import request from '/@/utils/request';


// Task管理
export const getTaskListPage = (params: any) => {
    return request(
        {
            url: '/api/TasksQz/get',
            method: 'get',
           params,
        }
    )
};
export const removeTask = (params: any) => {
    return request(
        {
            url: '/api/TasksQz/delete',
            method: 'delete',
            params: params
        }
    )
};
export const editTask = (params: any) => {
    return request(
        {
            url: '/api/TasksQz/put',
            method: 'put',
            data: params
        }
    )
};
export const addTask = (params: any) => {
    return request(
        {
            url: '/api/TasksQz/post',
            method: 'post',
            data: params
        }
    )
};

export const startJob = (params: any) => {
    return request(
        {
            url: '/api/TasksQz/StartJob',
            method: 'get',
           params,
        }
    )
};
export const stopJob = (params: any) => {
    return request(
        {
            url: '/api/TasksQz/StopJob',
            method: 'get',
           params,
        }
    )
};
export const reCovery = (params: any) => {
    return request(
        {
            url: '/api/TasksQz/ReCovery',
            method: 'get',
           params,
        }
    )
};
export const pauseJob = (params: any) => {
    return request(
        {
            url: '/api/TasksQz/PauseJob',
            method: 'get',
           params,
        }
    )
};
export const resumeJob = (params: any) => {
    return request(
        {
            url: '/api/TasksQz/ResumeJob',
            method: 'get',
           params,
        }
    )
};
export const getTaskNameSpace = (params: any) => {
    return request(
        {
            url: '/api/TasksQz/GetTaskNameSpace',
            method: 'get',
           params,
        }
    )
};
export const GetTaskLogs = (params: any) => {
    return request(
        {
            url: '/api/TasksQz/GetTaskLogs',
            method: 'get',
           params,
        }
    )
};
export const GetTaskOverview = (params: any) => {
    return request(
        {
            url: '/api/TasksQz/GetTaskOverview',
            method: 'get',
           params,
        }
    )
};
